package com.vernhe.feignClient;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;

import static org.springframework.web.bind.annotation.RequestMethod.GET;

/**
 * OpenFeign客户端，@FeignClient注解内的value填写的是FeignServer的applicationName
 *
 * @author Administrator
 */
@FeignClient("feign-server")
public interface MyFeignClient {
    @RequestMapping(value = "/", method = GET)
    String hello();
}
